<?php 
	

	//echo json_encode($_FILES["file"]);
//{name:"40246102_p0.jpg", type:"image/jpeg", tmp_name:"C:\wamp\tmp\phpAE.tmp", error:0, size:1654570}
	
	//判断当前目录下的tempUpload目录是否存在该文件
	if(file_exists("tempUpload/" . $_FILES["uploadfile"]["name"])){

	}else{
		$newloc = "tempUpload/" . $_FILES["uploadfile"]["name"];
		move_uploaded_file($_FILES["uploadfile"]["tmp_name"], "tempUpload/" . $_FILES["uploadfile"]["name"]);

		$tempfile = array("newfile" => $newloc);
		echo json_encode($tempfile);
	}



	
?>